﻿/// <reference path="AutoCompleteEntry.js">
/// <reference path="../../utilities/FXDom.js">
/// <reference path="../../utilities/Xpcom.js">
///--------------------------------------------------------------------
/// <file name="AutoCompleteEntries.js">
///   Contains all of the AutoCompleteEntry objects.
/// </file>
///--------------------------------------------------------------------

NAMFox.ns(function() { with (NAMFox) {

this.AutoCompleteEntries = {
    // All of the autoComplete entries for all supported markup tags follow in ALPHABETICAL ORDER.
    // Please do not change the order of these tags.
    // The only unsupported markup tag is [anchor][/anchor], but only because
    // it is deprecated as of v0.9.0 and superseded by the wiki-like syntax: [[#]]
    _headingOne: new AutoCompleteEntry(
        "!",
        1,
        "The largest header. Usable only at the start of a new line.<br /><br /><strong>Markup:</strong> !Header 1<br /><strong>Result:</strong> <h1 class=\"inline\">Header 1</h1>",
        null
    ),
    _headingTwo: new AutoCompleteEntry(
        "!!",
        2,
        "A large header. Usable only at the start of a new line.<br /><br /><strong>Markup:</strong> !!Header 2<br /><strong>Result:</strong> <h2 class=\"inline\">Header 2</h2>",
        null
    ),
    _headingThree: new AutoCompleteEntry(
        "!!!",
        3,
        "A medium header. Usable only at the start of a new line.<br /><br /><strong>Markup:</strong> !!!Header 3<br /><strong>Result:</strong> <h3 class=\"inline\">Header 3</h3>",
        null
    ),
    _headingFour: new AutoCompleteEntry(
        "!!!!",
        4,
        "A small header. Usable only at the start of a new line.<br /><br /><strong>Markup:</strong> !!!!Header 4<br /><strong>Result:</strong> <h4 class=\"inline\">Header 4</h4>",
        null
    ),
    _headingFive: new AutoCompleteEntry(
        "!!!!!",
        5,
        "The smallest header. Usable only at the start of a new line.<br /><br /><strong>Markup:</strong> !!!!!Header 5<br /><strong>Result:</strong> <h5 class=\"inline\">Header 5</h5>",
        null
    ),
    _shortOrderedList: new AutoCompleteEntry(
        "#",
        1,
        "Shorthand for starting an ordered list. Usable only at the start of a new line.<br /><br /><strong>Markup:</strong><div class=\"indent\"># Bullet One<br />## Bullet Two<br /># Bullet Three</div><strong>Result:</strong><span class=\"wikilists\"><ol><li> Bullet One</li><ol><li> Bullet Two</li></ol></li><li> Bullet Three</li></ol></span>",
        null
    ),
    _wikiItalics: new AutoCompleteEntry(
        "''''",
        2,
        "The new wiki markup tag to italicize text.<br /><br /><strong>Markup:</strong> ''Italics''<br /><strong>Results:</strong> <em>Italics</em>"
    ),
    _wikiBold: new AutoCompleteEntry(
        "''''''",
        3,
        "The new wiki markup tag to bold text.<br /><br /><strong>Markup:</strong> '''Bold'''<br /><strong>Result:</strong> <strong>Bold</strong>"
    ),
    _shortUnorderedList: new AutoCompleteEntry(
        "*",
        1,
        "Shorthand for starting an unordered list. Usable only at the start of a new line.<br /><br /><strong>Markup:</strong><div class=\"indent\">* Bullet One<br />** Bullet Two<br />* Bullet Three</div><strong>Result:</strong><span class=\"wikilists\"><ul><li> Bullet One</li><ul><li> Bullet Two</li></ul></li><li> Bullet Three</li></ul></span>",
        null
    ),
    _wikiHeadingOne: new AutoCompleteEntry(
        "==",
        1,
        "The largest header. Usable only at the start of a new line.<br /><br /><strong>Markup:</strong> =Header 1=<br /><strong>Result:</strong> <h1 class=\"inline\">Header 1</h1>",
        null
    ),
    _wikiHeadingTwo: new AutoCompleteEntry(
        "====",
        2,
        "A large header. Usable only at the start of a new line.<br /><br /><strong>Markup:</strong> ==Header 2==<br /><strong>Result:</strong> <h2 class=\"inline\">Header 2</h2>",
        null
    ),
    _wikiHeadingThree: new AutoCompleteEntry(
        "======",
        3,
        "A medium header. Usable only at the start of a new line.<br /><br /><strong>Markup:</strong> ===Header 3===<br /><strong>Result:</strong> <h3 class=\"inline\">Header 3</h3>",
        null
    ),
    _wikiHeadingFour: new AutoCompleteEntry(
        "========",
        4,
        "A small header. Usable only at the start of a new line.<br /><br /><strong>Markup:</strong> ====Header 4====<br /><strong>Result:</strong> <h4 class=\"inline\">Header 4</h4>",
        null
    ),
    _wikiHeadingFive: new AutoCompleteEntry(
        "==========",
        5,
        "The smallest header. Usable only at the start of a new line.<br /><br /><strong>Markup:</strong> =====Header 5=====<br /><strong>Result:</strong> <h5 class=\"inline\">Header 5</h5>",
        null
    ),
    _memberShortLink: new AutoCompleteEntry(
        "@",
        1,
        "Shorthand for creating a link to a member's profile page and notifying a member.<br /><br /><strong>Markup:</strong> @Artificer and @Ren of Heavens@<br /><strong>Result:</strong> <a href=\"/members/profiles/Artificer/\" class=\"mention\">Artificer</a> and <a href=\"/members/profiles/Ren+of+Heavens/\" class=\"mention\">Ren of Heavens</a>",
        null,
        function (selectedText) {
            if ($.contains(selectedText, " ")) {
                return selectedText + "@";
            }

            return selectedText;
        }
    ),
    _shortLink: new AutoCompleteEntry(
        "[ ]",
        1,
        "Shorthand for creating a link.<br /><br /><strong>Markup:</strong> [http://www.neoseeker.com Neoseeker]<br /><strong>Result:</strong> <a class=\"wikianchor\" target=\"_blank\" href=\"http://www.neoseeker.com\">Neoseeker</a>"
    ),
    _anchor: new AutoCompleteEntry(
        "[[#]]",
        3,
        "An anchor, used so that someone can link directly to this part of the page.<br /><br /><strong>Markup:</strong> [[#link-me-here]]<br /><strong>Result:</strong> <em>(Anchors do not show up on a page. See the other anchor tag for how to link to an anchor.)</em>"
    ),
    _anchorLink: new AutoCompleteEntry(
        "[[#|]]",
        4,
        "A link to an anchor on this page.<br /><br /><strong>Markup:</strong> [[#link-me-here|Link to Previous Anchor]]<br /><strong>Result:</strong> <a href=\"#link-me-here\">Link to Previous Anchor</a>"
    ),
    _memberLink: new AutoCompleteEntry(
        "[[member:]]",
        9,
        "A link to a member's profile.<br /><br /><strong>Markup:</strong> [[member:Artificer]]<br /><strong>Result:</strong> <a target=\"_blank\" href=\"/members/profiles/Artificer/\">Artificer</a>"
    ),
    _memberWithAliasLink: new AutoCompleteEntry(
        "[[member:|]]",
        9,
        "A link to a member's profile with a different name for the link.<br /><br /><strong>Markup:</strong> [[member:Artificer|NAMFox Hero]]<br /><strong>Result:</strong> <a target=\"_blank\" href=\"/members/profiles/Artificer/\">NAMFox Hero</a>"
    ),
    _pmLink: new AutoCompleteEntry(
        "[[pm:]]",
        5,
        "A link to PM a certain member.<br /><br /><strong>Markup:</strong> [[pm:Artificer]]<br /><strong>Result:</strong> <a href=\"/forums/index.php?fn=send_pm&manual_username=Artificer\" target=\"_blank\">Artificer</a>"
    ),
    _pmWithAliasLink: new AutoCompleteEntry(
        "[[pm:|]]",
        5,
        "A link to PM a certain member with a different name for the link.<br /><br /><strong>Markup:</strong> [[pm:Artificer|PM Me]]<br /><strong>Result:</strong> <a target=\"_blank\" href=\"/forums/index.php?fn=send_pm&manual_username=Artificer\">PM Me</a>"
    ),
    _pmWithSubjectLink: new AutoCompleteEntry(
        "[[pm:|subject:]]",
        5,
        "A link to PM a certain member with a specific subject line.<br /><br /><strong>Markup:</strong> [[pm:Artificer|subject:Hello]]<br /><strong>Result:</strong> <a href=\"/forums/index.php?fn=send_pm&manual_username=Artificer&title=Hello\" target=\"_blank\">Artificer</a>"
    ),
    _pmWithSubjectAndAliasLink: new AutoCompleteEntry(
        "[[pm:|subject:|]]",
        5,
        "A link to PM a certain member with a specific subject line and a different name for the link.<br /><br /><strong>Markup:</strong> [[pm:Artificer|subject:Hello|PM]]<br /><strong>Result:</strong> <a href=\"/forums/index.php?fn=send_pm&manual_username=Artificer&title=Hello\" target=\"_blank\">PM</a>"
    ),
    _bold: new AutoCompleteEntry(
        "[b][/b]",
        3,
        "Makes text bold.<br /><br /><strong>Markup:</strong> [b]Bold[/b]<br /><strong>Result:</strong> <strong>Bold</strong>"
    ),
    _code: new AutoCompleteEntry(
        "[code]\n\n[/code]",
        7,
        "Separates code, like HTML or CSS, from the rest of the text.<br /><br /><strong>Markup:</strong> [code]&lt;html&gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/html&gt;[/code]<br /><strong>Result:</strong> <table width=\"90%\"><tbody><tr><td><font size=\"1\">code</font></td></tr><tr><td class=\"code\"><pre>&lt;html&gt;    &lt;/html&gt;</pre></td></tr></tbody></table>"
    ),
    _color: new AutoCompleteEntry(
        "[color=][/color]",
        8,
        "Colors text. The color you use can be a named color or a <a href=\"http://www.colorpicker.com/\" target=\"_blank\">hex code</a>.<br /><br /><strong>Markup:</strong> [color=red]Named[/color] [color=#FF6640]color[/color]<br /><strong>Result:</strong> <span style=\"color: red;\">Named</span> <span style=\"color: #FF6640\">color</span>"
    ),
    _divCenter: new AutoCompleteEntry(
        "[div align=center][/div]",
        18,
        "Center aligns the content it surrounds.<br /><br /><strong>Markup:</strong> [div align=center]Center Aligned[/div]<br /><strong>Result:</strong> <div align=\"center\">Center Aligned</div>"
    ),
    _divLeft: new AutoCompleteEntry(
        "[div align=left][/div]",
        16,
        "Left aligns the content it surrounds.<br /><br /><strong>Markup:</strong> [div align=left]Left Aligned[/div]<br /><strong>Result:</strong> <div align=\"left\">Left Aligned</div>"
    ),
    _divRight: new AutoCompleteEntry(
        "[div align=right][/div]",
        17,
        "Right aligns the content it surrounds.<br /><br /<strong>Markup:</strong> [div align=right]Right Aligned[/div]<br /><strong>Result:</strong> <div align=\"right\">Right Aligned</div>"
    ),
    _faqImage: new AutoCompleteEntry(
        "[faqimg=][/faqimg]",
        9,
        "Links to an image that is part of a vFAQ but also provides another image to use as the link.<br /><br /><strong>Markup:</strong> [faqimg=389]http://i.neoseeker.com/m/31026_photo.gif[/faqimg]<br /><strong>Result:</strong> <a class=\"faqimage\" href=\"http://i.neoseeker.com/v_vfaq_image.php?id=389\"><img src=\"http://i.neoseeker.com/m/31026_photo.gif\"/></a>"
    ),
    _floatLeft: new AutoCompleteEntry(
        "[float=left][/float]",
        12,
        "Floats its contents to the left. This can be used to make text wrap around images.<br /><br /><strong>Markup:</strong> <div class=\"indent\">[float=left][img]http://i.neoseeker.com/f/neo/community_grey.gif[/img][/float]Two roads diverged in a wood, and I-<br />I took the one less traveled by,<br />And that has made all the difference.</div><br /><strong>Result:</strong> <div class=\"indent\"><div style=\"float: left;\"><img src=\"http://i.neoseeker.com/f/neo/community_grey.gif\" /></div>Two roads diverged in a wood, and I-<br />I took the one less traveled by,<br />And that has made all the difference.</div>"
    ),
    _floatRight: new AutoCompleteEntry(
        "[float=right][/float]",
        13,
        "Floats its contents to the right. This can be used to make text wrap around images.<br /><br /><strong>Markup:</strong> <div class=\"indent\">[float=right][img]http://i.neoseeker.com/f/neo/community_grey.gif[/img][/float][div align=right]Two roads diverged in a wood, and I-<br />I took the one less traveled by,<br />And that has made all the difference.[/div]</div><br /><strong>Result:</strong> <div class=\"indent\"><div style=\"float: right;\"><img src=\"http://i.neoseeker.com/f/neo/community_grey.gif\" /></div><div align=\"right\">Two roads diverged in a wood, and I-<br />I took the one less traveled by,<br />And that has made all the difference.</div></div>"
    ),
    _gamespot: new AutoCompleteEntry(
        "[gamespot][/gamespot]",
        10,
        "Embeds a video from <a href=\"http://www.gamespot.com/\" target=\"_blank\">Gamespot</a> based on the video's ID.<br /><br /><strong>Markup:</strong> [gamespot]6187403[/gamespot] (<em>from http://www.gamespot.com/video/943711/<strong>6187403</strong>/street-fighter-iv-official-trailer-2, 50% of actual size</em>)<br /><strong>Result:</strong><div class=\"indent\"><embed id=\"mymovie\" flashvars=\"paramsURI=http%3A%2F%2Fwww%2Egamespot%2Ecom%2Fpages%2Fvideo%5Fplayer%2Fproteus%5Fxml%2Ephp%3Fadseg%3D%26adgrp%3D%26sid%3D6187403%26embedded%3D1%26autoPlay%3D0\" allowfullscreen=\"true\" allowscriptaccess=\"always\" quality=\"high\" name=\"mymovie\" src=\"http://image.com.com/gamespot/images/cne_flash/production/media_player/proteus/gs/proteus_embed.swf\" type=\"application/x-shockwave-flash\" width=\"216\" height=\"177\">",
        null,
        $.transformers.gamespot
    ),
    _gameTrailers: new AutoCompleteEntry(
        "[gametrailers][/gametrailers]",
        14,
        "Embeds a video from <a href=\"http://www.gametrailers.com/index.php?\" target=\"_blank\">Gametrailers</a> based on the video's ID.<br /><br /><strong>Markup:</strong> [gametrailers]25549[/gametrailers] (<em>from http://www.gametrailers.com/player/<strong>25549</strong>, 50% of actual size</em>)<br /><strong>Result:</strong><div class=\"indent\"><object width=\"240\" height=\"204\" id=\"gtembed\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\">    <param value=\"sameDomain\" name=\"allowScriptAccess\"/> <param value=\"http://www.gametrailers.com/remote_wrap.php?mid=25549\" name=\"movie\"/> <param value=\"high\" name=\"quality\"/> <embed width=\"240\" height=\"204\" align=\"middle\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" quality=\"high\" allowscriptaccess=\"sameDomain\" name=\"gtembed\" swliveconnect=\"true\" src=\"http://www.gametrailers.com/remote_wrap.php?mid=25549\"/> </object></div>",
        null,
        $.transformers.gametrailers
    ),
    _gameTrailersUserVideo: new AutoCompleteEntry(
        "[gametrailers_uservideo][/gametrailers_uservideo]",
        24,
        "Embeds a user video from <a href=\"http://www.gametrailers.com/index.php?\" target=\"_blank\">Gametrailers</a> based on the video's ID.<br /><br /><strong>Markup:</strong> [gametrailers_uservideo]114364[/gametrailers_uservideo] (<em>from http://www.gametrailers.com/player/usermovies/<strong>114364</strong>, 50% of actual size</em>)<br /><strong>Result:</strong><div class=\"indent\"><object width=\"240\" height=\"204\" id=\"gtembed\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\">    <param value=\"sameDomain\" name=\"allowScriptAccess\"/> <param value=\"http://www.gametrailers.com/remote_wrap.php?umid=114364\" name=\"movie\"/> <param value=\"high\" name=\"quality\"/> <embed width=\"240\" height=\"204\" align=\"middle\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" quality=\"high\" allowscriptaccess=\"sameDomain\" name=\"gtembed\" swliveconnect=\"true\" src=\"http://www.gametrailers.com/remote_wrap.php?umid=114364\"/> </object></div>",
        null,
        $.transformers.gametrailersUser
    ),
    _gameVideos: new AutoCompleteEntry(
        "[gamevideos][/gamevideos]",
        12,
        "Embeds a video from <a href=\"http://www.gamevideos.com/\" target=\"_blank\">GameVideos</a> based on the video's ID.<br /><br /><strong>Markup:</strong> [gamevideos]13971[/gamevideos] (<em>from  http://gamevideos.com/video/id/<strong>13971</strong>, 50% of actual size</em>)<br /><strong>Result:</strong> <div class=\"indent\"><object width=\"210\" height=\"202\" align=\"middle\" id=\"gamevideos6\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\"><param value=\"high\" name=\"quality\"/><param value=\"true\" name=\"play\"/><param value=\"true\" name=\"loop\"/><param value=\"showall\" name=\"scale\"/><param value=\"window\" name=\"wmode\"/><param value=\"false\" name=\"devicefont\"/><param value=\"#000000\" name=\"bgcolor\"/><param value=\"true\" name=\"menu\"/><param value=\"sameDomain\" name=\"allowScriptAccess\"/><param value=\"true\" name=\"allowFullScreen\"/><param value=\"\" name=\"salign\"/><param value=\"http://www.gamevideos.com:80/swf/gamevideos11.swf?embedded=1&fullscreen=1&autoplay=0&src=http://www.gamevideos.com:80/video/videoListXML%3Fid%3D13971%26ordinal%3D1176581224863%26adPlay%3Dfalse\" name=\"movie\"/><param value=\"high\" name=\"quality\"/><param value=\"#000000\" name=\"bgcolor\"/> <embed width=\"210\" height=\"202\" align=\"middle\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" allowscriptaccess=\"sameDomain\" menu=\"true\" name=\"gamevideos6\" bgcolor=\"#000000\" id=\"gamevideos6\" devicefont=\"false\" wmode=\"window\" scale=\"showall\" loop=\"true\" play=\"true\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" quality=\"high\" src=\"http://www.gamevideos.com:80/swf/gamevideos11.swf?embedded=1&fullscreen=1&autoplay=0&src=http://www.gamevideos.com:80/video/videoListXML%3Fid%3D13971%26ordinal%3D1176581224863%26adPlay%3Dfalse\"/></object></div>",
        null,
        $.transformers.gamevideos
    ),
    _horizontalRule: new AutoCompleteEntry(
        "[hr]",
        4,
        "Makes a horizontal line. Used to separate two sections of your post.<br /><br /><strong>Markup:</strong> [hr]<br /><strong>Result:</strong><hr />"
    ),
    _italics: new AutoCompleteEntry(
        "[i][/i]",
        3,
        "Italicizes the text between the tags.<br /><br /><strong>Markup:</strong> [i]Italics[/i]<br /><strong>Results:</strong> <em>Italics</em>"
    ),
    _ignVideo: new AutoCompleteEntry(
        "[ignvideo][/ignvideo]",
        10,
        "Embeds a video from <a href=\"http://www.ign.com/\" target=\"_blank\">IGN</a>. When viewing an IGN video, click on the \"Embed Video\" button and copy and paste the code that comes up.<br /><br /><strong>Markup:</strong> [ignvideo]object_ID=826967&downloadURL=http://ps3movies.ign.com/ps3/video/article/824/824567/folklore_vidreview_100207_flvlowwide.flv[/ignvideo]<br /><strong>Result:</strong> <div class=\"indent\">(<em>50% of actual size</em>)<br /><embed width=\"266\" height=\"180\" type=\"application/x-shockwave-flash\" flashvars=\"object_ID=826967&downloadURL=http://ps3movies.ign.com/ps3/video/article/824/824567/folklore_vidreview_100207_flvlowwide.flv&allownetworking=\"all\"\" src=\"http://videomedia.ign.com/ev/ev.swf\"/></div>"
    ),
    _imageLink: new AutoCompleteEntry(
        "[img link=][/img]",
        11,
        "Displays an image that is also a link.<br /><br /><strong>Markup:</strong> [img link=http://www.neoseeker.com/]http://i.neoseeker.com/f/neo/community_online.gif[/img]<br /><strong>Result:</strong> <a target=\"_blank\" href=\"http://www.neoseeker.com/\"><img border=\"1\" alt=\"\" src=\"http://i.neoseeker.com/f/neo/community_online.gif\"/></a>"
    ),
    _image: new AutoCompleteEntry(
        "[img][/img]",
        5,
        "Puts an image directly into your post.<br /><br /><strong>Markup:</strong> [img]http://i.neoseeker.com/f/neo/profile_ico_red.gif[/img]<br /><strong>Result:</strong> <img src=\"http://i.neoseeker.com/f/neo/profile_ico_red.gif\" />"
    ),
    _listItem: new AutoCompleteEntry(
        "[li]",
        4,
        "A list item. Usually a bullet, but turns into a number if inside an [ol] tag.<br /><br /><strong>Markup:</strong> <div class=\"indent\">[li]A bullet<br />[ol][li]And a number.[/ol]</div><br /><strong>Result:</strong> <div class=\"indent\"><li>A bullet<ol><li>And a number.</li></ol></li></div>"
    ),
    _namedLink: new AutoCompleteEntry(
        "[link name=][/link]",
        11,
        "Links to a page using a name.<br /><br /><strong>Markup:</strong> [link name=Neoseeker]http://www.neoseeker.com/[/link]<br /><strong>Result:</strong> <a href=\"http://www.neoseeker.com\">Neoseeker</a>"
    ),
    _plainLink: new AutoCompleteEntry(
        "[link][/link]",
        6,
        "Ensures that text is treated as a link.<br /><br /><strong>Markup:</strong> [link]http://www.neoseeker.com[/link]<br /><strong>Result:</strong> <a target=\"_blank\" href=\"http://www.neoseeker.com\">http://www.neoseeker.com</a>"
    ),
    _neovid: new AutoCompleteEntry(
        "[neovid][/neovid]",
        8,
        "Embeds a video from videos.neoseeker.com. Copy and paste the neovid code from the videos.neoseeker.com page to post it. (<a href=\"http://videos.neoseeker.com/movies/374-namfox-autocomplete/\">Sample Video</a>)<br /><br /><strong>Markup:</strong> [neovid]Mzc0LU5BTUZveCBBdXRvQ29tcGxldGU=[/neovid]<br /><strong>Result:</strong> <div class=\"indent\">(<em>50% of actual size</em>)<br /><object width=\"235\" height=\"177\"><param value=\"http://videos.neoseeker.com/v/Mzc0LU5BTUZveCBBdXRvQ29tcGxldGU=\" name=\"movie\"/><embed width=\"235\" height=\"177\" type=\"application/x-shockwave-flash\" src=\"http://videos.neoseeker.com/v/Mzc0LU5BTUZveCBBdXRvQ29tcGxldGU=\"/></object></div>"
    ),
    _neovidWithWidth: new AutoCompleteEntry(
        "[neovid size=][/neovid]",
        14,
        "Embeds a video from videos.neoseeker.com with a custom width. Copy and paste the neovid code from the videos.neoseeker.com page and then add your desired video width. (<a href=\"http://videos.neoseeker.com/movies/374-namfox-autocomplete/\">Sample Video</a>)<br /><br /><strong>Markup:</strong> [neovid size=100]Mzc0LU5BTUZveCBBdXRvQ29tcGxldGU=[/neovid]<br /><strong>Result:</strong> <div class=\"indent\"><object width=\"100\" height=\"76\"><param value=\"http://videos.neoseeker.com/v/Mzc0LU5BTUZveCBBdXRvQ29tcGxldGU=\" name=\"movie\"/><embed width=\"100\" height=\"76\" type=\"application/x-shockwave-flash\" src=\"http://videos.neoseeker.com/v/Mzc0LU5BTUZveCBBdXRvQ29tcGxldGU=\"/></object></div>"
    ),
    _orderedList: new AutoCompleteEntry(
        "[ol][/ol]",
        4,
        "Starts an ordered list.<br /><br /><strong>Markup:</strong> <div class=\"indent\">[ol][li]Bullet One<br />[ol][li]Bullet Two[/ol]<br />[li]Bullet Three[/ol]</div><strong>Results:</strong> <ol><li>Bullet One<ol><li>Bullet Two</li></ol></li><li>Bullet Three</li></ol>"
    ),
    _php: new AutoCompleteEntry(
        "[php]\n\n[/php]",
        6,
        "Separates PHP code from the rest of the text and provides syntax highlighting.<br /><br /><strong>Markup:</strong> <div class=\"indent\">[php]function helloWorld()<br />{<br />}[/php]</div><br /><strong>Results:</strong> <table width=\"90%\"><tbody><tr><td><font size=\"1\">php code</font></td></tr><tr><td class=\"code\"><pre><code><font color=\"#000000\"><font color=\"#0000bb\"></font><font color=\"#007700\">function </font><font color=\"#0000bb\">helloWorld</font><font color=\"#007700\">()\n{\n}</font><font color=\"#0000bb\"/></font></code></pre></td></tr></tbody></table>"
    ),
    _pre: new AutoCompleteEntry(
        "[pre][/pre]",
        5,
        "Allows you to write &quot;pre-formatted&quot; text, which preserves all white space.<br /><br /><strong>Markup:</strong> [pre]Extra&nbsp;&nbsp;&nbsp;spaces&nbsp;&nbsp;&nbsp;between&nbsp;&nbsp;&nbsp;words![/pre]<br /><strong>Result:</strong><pre class=\"indent\">Extra   spaces   between   words!</pre>"
    ),
    _shortQuoteWithOriginator: new AutoCompleteEntry(
        "[q=][/q]",
        4,
        "Shorthand for quoting someone directly.<br /><br /><strong>Markup:</strong> [q=Artificer]You may use this thread to test working with any of NAMFox's features...[/q]<br /><strong>Results:</strong><blockquote style=\"color: rgb(34, 34, 102),\"><font size=\"1\">quote <b>Artificer</b><br/></font><div class=\"qt\">You may use this thread to test working with any of NAMFox's features...</div></blockquote>"
    ),
    _shortQuoteWithLinkedSource: new AutoCompleteEntry(
        "[q=|][/q]",
        5,
        "Shorthand for quoting someone as well as link to an external source (such as a web site).<br /><br /><strong>Markup:</strong> [q=Wikipedia|http://en.wikipedia.org/wiki/Main_Page]Welcome to Wikipedia, the free encyclopedia that anyone can edit.[/q]<br /><strong>Results:</strong><blockquote style=\"color: rgb(34, 34, 102),\"><font size=\"1\">quote <b><a target=\"_blank\" href=\"http://en.wikipedia.org/wiki/Main_Page\">Wikipedia</a></b><br/></font><div class=\"qt\">Welcome to Wikipedia,<br/>the free encyclopedia that anyone can edit.</div></blockquote>"
    ),
    _shortQuoteWithMessageLink: new AutoCompleteEntry(
        "[q=|message:][/q]",
        13,
        "Shorthand for quoting someone as well as link to their message on Neoseeker.<br /><br /><strong>Markup:</strong> [q=Artificer|message:14379045]You may use this thread to test working with any of NAMFox's features...[/q]<br /><strong>Results:</strong><blockquote style=\"color: rgb(34, 34, 102),\"><font size=\"1\">quote <b><a target=\"_blank\" href=\"/forums/directmessage.php?m=14379045\">Artificer</a></b><br/></font><div class=\"qt\">You may use this thread to test working with any of NAMFox's features...<br/></div></blockquote>"
    ),
    _shortQuote: new AutoCompleteEntry(
        "[q][/q]",
        3,
        "Shorthand for quoting someone anonymously.<br /><br /><strong>Markup:</strong> [q]You may use this thread to test working with any of NAMFox's features...[/q]<br /><strong>Results:</strong><blockquote style=\"color: rgb(34, 34, 102),\"><font size=\"1\">quote</font><div class=\"qt\">You may use this thread to test working with any of NAMFox's features...<br/></div></blockquote>"
    ), 
    _quoteWithOriginator: new AutoCompleteEntry(
        "[quote=][/quote]",
        8,
        "Allows you to quote someone directly.<br /><br /><strong>Markup:</strong> [quote=Artificer]You may use this thread to test working with any of NAMFox's features...[/quote]<br /><strong>Results:</strong><blockquote style=\"color: rgb(34, 34, 102),\"><font size=\"1\">quote <b>Artificer</b><br/></font><div class=\"qt\">You may use this thread to test working with any of NAMFox's features...</div></blockquote>"
    ),
    _quoteWithLinkedSource: new AutoCompleteEntry(
        "[quote=|][/quote]",
        9,
        "Allows you to quote someone as well as link to an external source (such as a web site).<br /><br /><strong>Markup:</strong> [quote=Wikipedia|http://en.wikipedia.org/wiki/Main_Page]Welcome to Wikipedia, the free encyclopedia that anyone can edit.[/quote]<br /><strong>Results:</strong><blockquote style=\"color: rgb(34, 34, 102),\"><font size=\"1\">quote <b><a target=\"_blank\" href=\"http://en.wikipedia.org/wiki/Main_Page\">Wikipedia</a></b><br/></font><div class=\"qt\">Welcome to Wikipedia,<br/>the free encyclopedia that anyone can edit.</div></blockquote>"
    ),
    _quoteWithMessageLink: new AutoCompleteEntry(
        "[quote=|message:][/quote]",
        17,
        "Allows you to quote someone as well as link to their message.<br /><br /><strong>Markup:</strong> [quote=Artificer|message:14379045]You may use this thread to test working with any of NAMFox's features...[/quote]<br /><strong>Results:</strong><blockquote style=\"color: rgb(34, 34, 102),\"><font size=\"1\">quote <b><a target=\"_blank\" href=\"/forums/directmessage.php?m=14379045\">Artificer</a></b><br/></font><div class=\"qt\">You may use this thread to test working with any of NAMFox's features...<br/></div></blockquote>"
    ),
    _quote: new AutoCompleteEntry(
        "[quote][/quote]",
        7,
        "Allows you to quote someone anonymously.<br /><br /><strong>Markup:</strong> [quote]You may use this thread to test working with any of NAMFox's features...[/quote]<br /><strong>Results:</strong><blockquote style=\"color: rgb(34, 34, 102),\"><font size=\"1\">quote</font><div class=\"qt\">You may use this thread to test working with any of NAMFox's features...<br/></div></blockquote>"
    ),
    _sizeOne: new AutoCompleteEntry(
        "[size=1][/size]",
        8,
        "Makes the surrounded text small.<br /><br /><strong>Markup:</strong> [size=1]Size 1[/size]<br /><strong>Results:</strong> <font size=\"1\">Size 1</font>"
    ),
    _sizeTwo: new AutoCompleteEntry(
        "[size=2][/size]",
        8,
        "Makes the surrounded text medium-sized.<br /><br /><strong>Markup:</strong> [size=2]Size 2[/size]<br /><strong>Results:</strong> <font size=\"2\">Size 2</font>"
    ),
    _sizeThree: new AutoCompleteEntry(
        "[size=3][/size]",
        8,
        "Makes the surrounded text large.<br /><br /><strong>Markup:</strong> [size=3]Size 3[/size]<br /><strong>Results:</strong> <font size=\"3\">Size 3</font>"
    ),
    _sizeFour: new AutoCompleteEntry(
        "[size=4][/size]",
        8,
        "Makes the surrounded text very large.<br /><br /><strong>Markup:</strong> [size=4]Size 4[/size]<br /><strong>Results:</strong> <font size=\"4\">Size 4</font>"
    ),
    _spoiler: new AutoCompleteEntry(
        "[spoiler=][/spoiler]",
        10,
        "Conceals text which could spoil things for other people.<br /><br /><strong>Markup:</strong> [spoiler=Careful!]Spoiler Text[/spoiler]<br /><strong>Results:</strong> <noscript><div class=\"spoiler_header\"><b>Spoiler:</b> <span class=\"spoilertitle\">Careful!</span></div><div class=\"spoiler\"><div><span class=\"tip\">Highlight this box with your cursor to read the spoiler text.</span><hr />Spoiler Text</div></div></noscript><div class=\"spoiler_header\" style=\"display: block;\"><input type=\"button\" name=\"js_spoiler\" class=\"forum_button\" value=\"Show Spoiler\" onclick=\"flipshow(this)\" /><strong>Spoiler:</strong><span class=\"spoilertitle\">  Careful!</span><div class=\"spoiler\" style=\"display:none\"><div class=\"show_spoiler\"><hr />Spoiler Text</div></div></div>"
    ),
    _strike: new AutoCompleteEntry(
        "[strike][/strike]",
        8,
        "Strikes out the text between the tags.<br /><br /><strong>Markup:</strong> [strike]Strike out[/strike]<br /><strong>Results:</strong> <del>Strike out</del>"
    ),
    _subscript: new AutoCompleteEntry(
        "[sub][/sub]",
        5,
        "Makes the surrounded text a subscript.<br /><br /><strong>Markup:</strong> H[sub]2[/sub]O<br /><strong>Results:</strong> H<sub>2</sub>O"
    ),
    _superscript: new AutoCompleteEntry(
        "[sup][/sup]",
        5,
        "Makes the surrounded text a superscript.<br /><strong>Markup:</strong> E = mc[sup]2[/sup]<br /><strong>Results:</strong> E = mc<sup>2</sup>"
    ),
    _underline: new AutoCompleteEntry(
        "[u][/u]",
        3,
        "Underlines the text between the tags.<br /><br /><strong>Markup:</strong> [u]Underline[/u]<br /><strong>Results:</strong> <u>Underline</u>"
    ),
    _unorderedList: new AutoCompleteEntry(
        "[ul][/ul]",
        4,
        "Starts an unordered list. Also used for indenting blocks of text.<br /><br /><strong>Markup:</strong> [ul]Indented[/ul]<br /><strong>Results:</strong> <ul>Indented</ul>"
    ),
    _youtube: new AutoCompleteEntry(
        "[youtube][/youtube]",
        9,
        "Embeds a video from <a href=\"http://www.youtube.com\" target=\"_blank\">Youtube</a> based on the video's ID.<br /><br /><strong>Markup:</strong> [youtube]http://www.youtube.com/watch?v=vwIEqNWykzM[/youtube] (<em>50% of actual size</em>)<br /><br /><strong>Result:</strong> <div class=\"indent\"><iframe width=\"427\" height=\"255\" src=\"https://www.youtube.com/embed/vwIEqNWykzM?wmode=transparent\" frameborder=\"0\" allowfullscreen></iframe></div>"
    ),
    _yt: new AutoCompleteEntry(
        "[yt][/yt]",
        4,
        "Shorthand for [youtube] tag. Embeds a video from <a href=\"http://www.youtube.com\" target=\"_blank\">Youtube</a> based on the video's ID.<br /><br /><strong>Markup:</strong> [yt]http://www.youtube.com/watch?v=vwIEqNWykzM[/yt] (<em>50% of actual size</em>)<br /><br /><strong>Result:</strong> <div class=\"indent\"><iframe width=\"427\" height=\"255\" src=\"https://www.youtube.com/embed/vwIEqNWykzM?wmode=transparent\" frameborder=\"0\" allowfullscreen></iframe></div>"
    )
};

AutoCompleteEntries.allTags = [
    AutoCompleteEntries._headingOne,
    AutoCompleteEntries._headingTwo,
    AutoCompleteEntries._headingThree,
    AutoCompleteEntries._headingFour,
    AutoCompleteEntries._headingFive,
    AutoCompleteEntries._shortOrderedList,
    AutoCompleteEntries._wikiItalics,
    AutoCompleteEntries._wikiBold,
    AutoCompleteEntries._shortUnorderedList,
    AutoCompleteEntries._wikiHeadingOne,
    AutoCompleteEntries._wikiHeadingTwo,
    AutoCompleteEntries._wikiHeadingThree,
    AutoCompleteEntries._wikiHeadingFour,
    AutoCompleteEntries._wikiHeadingFive,
    AutoCompleteEntries._memberShortLink,
    AutoCompleteEntries._shortLink,
    AutoCompleteEntries._anchor,
    AutoCompleteEntries._anchorLink,
    AutoCompleteEntries._memberLink,
    AutoCompleteEntries._memberWithAliasLink,
    AutoCompleteEntries._pmLink,
    AutoCompleteEntries._pmWithAliasLink,
    AutoCompleteEntries._pmWithSubjectLink,
    AutoCompleteEntries._pmWithSubjectAndAliasLink,
    AutoCompleteEntries._bold,
    AutoCompleteEntries._code,
    AutoCompleteEntries._color,
    AutoCompleteEntries._divCenter,
    AutoCompleteEntries._divLeft,
    AutoCompleteEntries._divRight,
    AutoCompleteEntries._faqImage,
    AutoCompleteEntries._floatLeft,
    AutoCompleteEntries._floatRight,
    AutoCompleteEntries._gamespot,
    AutoCompleteEntries._gameTrailers,
    AutoCompleteEntries._gameTrailersUserVideo,
    AutoCompleteEntries._gameVideos,
    AutoCompleteEntries._horizontalRule,
    AutoCompleteEntries._italics,
    AutoCompleteEntries._ignVideo,
    AutoCompleteEntries._imageLink,
    AutoCompleteEntries._image,
    AutoCompleteEntries._listItem,
    AutoCompleteEntries._namedLink,
    AutoCompleteEntries._plainLink,
    AutoCompleteEntries._neovidWithWidth,
    AutoCompleteEntries._neovid,
    AutoCompleteEntries._orderedList,
    AutoCompleteEntries._php,
    AutoCompleteEntries._pre,
    AutoCompleteEntries._shortQuoteWithOriginator,
    AutoCompleteEntries._shortQuoteWithLinkedSource,
    AutoCompleteEntries._shortQuoteWithMessageLink,
    AutoCompleteEntries._shortQuote,
    AutoCompleteEntries._quoteWithOriginator,
    AutoCompleteEntries._quoteWithLinkedSource,
    AutoCompleteEntries._quoteWithMessageLink,
    AutoCompleteEntries._quote,
    AutoCompleteEntries._sizeOne,
    AutoCompleteEntries._sizeTwo,
    AutoCompleteEntries._sizeThree,
    AutoCompleteEntries._sizeFour,
    AutoCompleteEntries._spoiler,
    AutoCompleteEntries._strike,
    AutoCompleteEntries._subscript,
    AutoCompleteEntries._superscript,
    AutoCompleteEntries._underline,
    AutoCompleteEntries._unorderedList,
    AutoCompleteEntries._youtube,
    AutoCompleteEntries._yt
];

$.messages.enumerate(
    function(message) {
        AutoCompleteEntries.allTags.push(
            new CustomMessageAutoCompleteEntry(message)
        );
    }
);

AutoCompleteEntries.allTags.push(
    new CustomMessageAutoCompleteEntry($.messages.getDefaultMessage(), true)
);

}});